using System;

namespace OpenWaves.Caching
{
    public interface IThreadPool
    {
        void QueueWorkItem(Action action);
    }

    public class SystemThreadPool : IThreadPool
    {
        public void QueueWorkItem(Action action)
        {
            System.Threading.ThreadPool.QueueUserWorkItem(state => action());
        }
    }
}